Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Mar 2000
Posts: 21,080
Likes: 3
I type like Navaho
I type like Navaho
Joined: Mar 2000
Posts: 21,080
Likes: 3
Working on validation of the template files and need a little help with this part:

Code
code:

The validator is breaking on this, saying:
"Error: end tag for element "A" which is not open; try removing the end tag or check for improper nesting of elements" - it is giving that error for each instance of .

Any idea on how to fix this? This is in public_common.pl


- Allen wavey
- What Drives You?
Sponsored Links
Joined: Oct 2000
Posts: 195
Bob Offline
Member / Eejit
Member / Eejit
Offline
Joined: Oct 2000
Posts: 195
Sorry man, I can't really help, if I was to take a WILD guess, I would think A was reffering to the tag, so, I would check your stylesheet or whatever, but, thats just a wild guess.


If I'm leavin' with a broken heart you're leavin' with a broken nose ... ~ Jettingham - Cheating
Joined: Sep 2000
Posts: 4,211
Master Hacker
Master Hacker
Joined: Sep 2000
Posts: 4,211
RobbieB, your wild guess is wrong. smile most html validators don't validate any scripting, so you should be able to safely ignore that. what validator did you use on that?

[ May 29, 2001 06:15 PM: Message edited by: matt jacob ]

Joined: May 2000
Posts: 1,168
Member
Member
Offline
Joined: May 2000
Posts: 1,168
Correct me if I'm wrong, but I thought that document.writeln was a jscript function call, which is something slightly different.

Also Allen, I'd suggest that you do your form validation on the client side for faster processing. There are several ways to go about doing this, depending on what you want to accomplish.

- DB

Joined: Mar 2000
Posts: 21,080
Likes: 3
I type like Navaho
I type like Navaho
Joined: Mar 2000
Posts: 21,080
Likes: 3
smile Thanks everyone...

MJ, I am using http://validator.w3.org/ on our test forum.

DB, I am validating 6.1 code, don't have a lotta choice as to server/client...

This is code unchanged from here tho, if you "view source" you'll see what I mean. It's the inline javascript that checks to see if you are logged in yet, then writes that up top where it says

>> Hello, AllenAyres [ log out ]

It's in the public_common.pl file.

Just a couple of spots left to do on the main forum summary page, then I start going deeper, but getting the main page done makes the rest much easier since the code is re-used throughout.


- Allen wavey
- What Drives You?
Sponsored Links
Joined: May 2000
Posts: 1,168
Member
Member
Offline
Joined: May 2000
Posts: 1,168
Oh, CODE validation. I thought you were talking about form validation. Sorry!

- DB

Joined: Oct 2000
Posts: 195
Bob Offline
Member / Eejit
Member / Eejit
Offline
Joined: Oct 2000
Posts: 195
Quote
quote:
well now isn't that just lovely. tipsy


If I'm leavin' with a broken heart you're leavin' with a broken nose ... ~ Jettingham - Cheating
Joined: Mar 2000
Posts: 21,080
Likes: 3
I type like Navaho
I type like Navaho
Joined: Mar 2000
Posts: 21,080
Likes: 3
Quote
quote:
So, then how do you get to say it is validated code when everytime you run it through w3 it breaks on that? Link to an external .js file?


- Allen wavey
- What Drives You?
Joined: Sep 2000
Posts: 4,211
Master Hacker
Master Hacker
Joined: Sep 2000
Posts: 4,211
that would work just fine. or, just totally ignore all script validations that are showing.


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Shock Hosting
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
AllenAyres
AllenAyres
Texas
Posts: 21,080
Joined: March 2000
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,824
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 701
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 13
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260108)